package scau.jump.securitytrace.service.impl;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ServiceImplTestCase {
	
	private static final Logger log = LoggerFactory.getLogger(ServiceImplTestCase.class);

	public ServiceImplTestCase() {
		initDatabase();
	}
	
	public void initDatabase() {
		SchemaExport export = new SchemaExport(new AnnotationConfiguration().configure("hibernate-without-spring.cfg.xml"));
		export.create(true, true);
		log.debug("init database..."); 
	}
}
